package org.adultedu.dao;

import org.adultedu.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {

    //查询所有老师信息
    List<Teacher> queryAllTeacher();

    //查询特定老师
    List<Teacher> queryUniqueTeacher(Teacher teacher);

    List<Teacher> queryLimitTeacher(@Param("tname")String tname,
                                    @Param("tele")String tele,
                                    @Param("isverify")Integer isverify,
                                    @Param("currentpage") Integer currentpage,
                                    @Param("pagesize")Integer pagesize);

    // 修改老师信息
    int updateTeacher(Teacher teacher);

    // 插入老师信息
    int insertTeacher(Teacher teacher);

    // 删除老师信息
    int deleteTeacher(@Param("tid")String tid);
}
